package Inheritance;

import Inheritance2.People;

class Teacher extends People {
    private int age;

    public Teacher(int number, String name, String sex, Subject[] course, int a) {
        super(number, name, sex, course);
        age = a;
    }

    public int getAge() {
        return age;
    }

    public void openCourse(Teacher teacher, int n, Subject course1, int age) { //
        teacher.course[n] = course1;
        System.out.println(teacher.name + "" + teacher.course[n].coursename + "");
    }

    public void openSubject(Teacher mrwang, int z, Subject subject, int i) {
    }
}